import { ResponseData, HospitalDetail, bookingRuleData } from '@/api/type'
// 医院接口发送字段类型
export interface HospitalParams {
    hoscode?: string,
    hosname?: string,
    hostype?: string,
    provinceCode?: string,
    cityCode?: string,
    districtCode?: string,
    status?: number
}

export interface HospitalContent extends HospitalDetail {
    bookingRule: bookingRuleData
}

// 存储全部已有医院的数组类型
export type Content = HospitalContent[]

export interface HospitalResponseData extends ResponseData {
    data: {
        content: Content,
        "pageable": {
            "sort": {
                "sorted": boolean,
                "unsorted": boolean,
                "empty": boolean
            },
            "pageNumber": number,
            "pageSize": number,
            "offset": number,
            "paged": boolean,
            "unpaged": boolean
        },
        "totalPages": number,
        "totalElements": number,
        "last": boolean,
        "first": boolean,
        "sort": {
            "sorted": boolean,
            "unsorted": boolean,
            "empty": boolean
        },
        "numberOfElements": number,
        "size": number,
        "number": number,
        "empty": boolean
    }
}

// 医院字典数据
export interface HospitalDict {
    "id": number,
    "createTime": string,
    "updateTime": string,
    "isDeleted": number,
    "param": Record<string, any>,
    "parentId": number,
    "name": string,
    "value": string,
    "dictCode": string,
    "hasChildren": boolean
}
export type HospitalDictArr = HospitalDict[]
export interface HospitalDicData extends ResponseData {
    data: HospitalDictArr
}

//
export interface HosptialInfo extends ResponseData {
    data: Content
}